set terminal postscript
set output "sesslen.ps"
set size 1,0.75
set title "Session length (Connections = 8, Calls each 5KB)"
set xlabel "Calls per connection"
set ylabel "Response time (s)"
set logscale x
plot "sesslen.result" using ($1):($2/8) title "Serial" with linespoints,\
	 "sesslen.result" using ($1):($3/8) title "Parallel" with linespoints,\
	 "sesslen.result" using ($1):($4/8) title "Parallel+Log" with linespoints
	 
set terminal postscript
set output "sesslen-speedup.ps"
set title "Session length (Connections = 8, Calls each 5KB)"
set xlabel "Calls per connection"
set ylabel "Speedup"
set logscale x
plot "sesslen.result" using ($1):($2/$3) title "Parallel" with linespoints,\
	 "sesslen.result" using ($1):($2/$4) title "Parallel+Log" with linespoints
